package com.guoyh.bilbase.pop.pop

import android.content.Context
import androidx.databinding.DataBindingUtil
import androidx.databinding.ViewDataBinding
import com.lxj.xpopup.impl.PartShadowPopupView

abstract class BasePartShadowPop<DB : ViewDataBinding>(context: Context) : PartShadowPopupView(context) {

    lateinit var mDataBind: DB

    override fun getImplLayoutId(): Int {
        return getImplLayout()
    }

    override fun onCreate() {
        super.onCreate()
        mDataBind = DataBindingUtil.bind(popupImplView)!!

        onViewCreate()
    }

    abstract fun getImplLayout(): Int
    abstract fun onViewCreate()

}